<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="TalepedilenisEditDlg" widgetVar="TalepedilenisEditDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.EditTalepedilenisTitle}">

            <h:form id="TalepedilenisEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{talepedilenisController.selected != null}">

                        <h:outputLabel value="#{bundle.EditTalepedilenisLabel_talepId}" for="talepId" />
                        <h:outputText id="talepId" value="#{talepedilenisController.selected.talepId}" />

                        <p:outputLabel value="#{bundle.EditTalepedilenisLabel_talepTarih}" for="talepTarih" />
                        <p:calendar id="talepTarih" pattern="MM/dd/yyyy HH:mm:ss" value="#{talepedilenisController.selected.talepTarih}" title="#{bundle.EditTalepedilenisTitle_talepTarih}" required="true" requiredMessage="#{bundle.EditTalepedilenisRequiredMessage_talepTarih}" showOn="button"/>

                        <p:outputLabel value="#{bundle.EditTalepedilenisLabel_talepAciklama}" for="talepAciklama" />
                        <p:inputText id="talepAciklama" value="#{talepedilenisController.selected.talepAciklama}" title="#{bundle.EditTalepedilenisTitle_talepAciklama}" />

                        <p:outputLabel value="#{bundle.EditTalepedilenisLabel_talepDetayIsId}" for="talepDetayIsId" />
                        <p:selectOneMenu id="talepDetayIsId" value="#{talepedilenisController.selected.talepDetayIsId}" required="true" requiredMessage="#{bundle.EditTalepedilenisRequiredMessage_talepDetayIsId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{detayisController.items}"
                                           var="talepDetayIsIdItem"
                                           itemValue="#{talepDetayIsIdItem}"
                                           itemLabel="#{talepDetayIsIdItem.detayIsId.toString()}"
                                           />
                            <f:converter binding="#{detayisConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.EditTalepedilenisLabel_talepUstlenenPersonelId}" for="talepUstlenenPersonelId" />
                        <p:selectOneMenu id="talepUstlenenPersonelId" value="#{talepedilenisController.selected.talepUstlenenPersonelId}" required="true" requiredMessage="#{bundle.EditTalepedilenisRequiredMessage_talepUstlenenPersonelId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{personelController.items}"
                                           var="talepUstlenenPersonelIdItem"
                                           itemValue="#{talepUstlenenPersonelIdItem}"
                                           itemLabel="#{talepUstlenenPersonelIdItem.personelId.toString()}"
                                           />
                            <f:converter binding="#{personelConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.EditTalepedilenisLabel_talepEdenPersonelId}" for="talepEdenPersonelId" />
                        <p:selectOneMenu id="talepEdenPersonelId" value="#{talepedilenisController.selected.talepEdenPersonelId}" required="true" requiredMessage="#{bundle.EditTalepedilenisRequiredMessage_talepEdenPersonelId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{personelController.items}"
                                           var="talepEdenPersonelIdItem"
                                           itemValue="#{talepEdenPersonelIdItem}"
                                           itemLabel="#{talepEdenPersonelIdItem.personelId.toString()}"
                                           />
                            <f:converter binding="#{personelConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{bundle.EditTalepedilenisLabel_talepIsDurumId}" for="talepIsDurumId" />
                        <p:selectOneMenu id="talepIsDurumId" value="#{talepedilenisController.selected.talepIsDurumId}" required="true" requiredMessage="#{bundle.EditTalepedilenisRequiredMessage_talepIsDurumId}">
                            <f:selectItem itemLabel="#{bundle.SelectOneMessage}"/>
                            <f:selectItems value="#{isdurumuController.items}"
                                           var="talepIsDurumIdItem"
                                           itemValue="#{talepIsDurumIdItem}"
                                           itemLabel="#{talepIsDurumIdItem.isDurumId.toString()}"
                                           />
                            <f:converter binding="#{isdurumuConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{talepedilenisController.save}" value="#{bundle.Save}" update="display,:TalepedilenisListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,TalepedilenisEditDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="TalepedilenisEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
